import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import api from './api/index'
import element from 'element-ui'

/*
* js全局方法
* */
import format from './utils/toThousands' // 给数字加千分位
import exportExcel from './utils/exportExcel' // 导出excel
/*
* css
* */
import 'element-ui/lib/theme-default/index.css'
import '../static/css/reset.css'
import '../static/css/main.css'
import '../static/css/common.css'

Vue.config.productionTip = false
Vue.use(element)
Vue.prototype.$api = api
Vue.use(format)
Vue.prototype.$exportExcel = exportExcel

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
